// __PUBLIC__/js/page/admin/global/addnav
require(['../../common'], function() {
  require(['global.addnav'])
})

define('global.addnav', [
  'jquery',
  'jqp/validate'
], function($) {
  'use strict';

  $('#J_form').validate({
    classPlace: '.kv',
    errorPlace: '.kv-error',
    errors: {
      name: {
        required: '请填写导航名称',
      },
      url: {
        required: '请填写链接地址',
      },
    }
  })
})
